package com.kantboot.business.water.web.contrller;

import com.kantboot.business.water.domain.dto.BusWaterLiftingPointSearchFrontDTO;
import com.kantboot.business.water.service.IBusWaterLiftingPointService;
import com.kantboot.util.common.result.RestResult;
import com.kantboot.util.core.param.PageParam;
import com.kantboot.util.core.result.PageResult;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 提水点
 */
@RestController
@RequestMapping("/bus/water/waterLiftingPoint")
public class BusWaterLiftingPointController  {

    @Resource
    private IBusWaterLiftingPointService service;

    @RequestMapping("/getBodyData")
    public RestResult<PageResult> getBodyData(@RequestBody PageParam<BusWaterLiftingPointSearchFrontDTO> pageParam) {
        return RestResult.success(service.getBodyDataFront(pageParam), "getSuccess","获取成功");
    }

    @RequestMapping("/getSelfList")
    public RestResult getSelfList() {
        return RestResult.success(service.getSelfList(), "getSuccess", "获取成功");
    }

}
